import request from '@/utils/request'

// 获取 列表分页数据  post 传data参数  get传params参数
export function add(data) {
  return request({
    url: '/schedule/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/schedule/update',
    method: 'post',
    data
  })
}

export function getAll(data) {
  return request({
    url: '/schedule/getAll',
    method: 'post',
    data
  })
}

export function getSchedule() {
  return request({
    url: '/schedule/getSchedule',
    method: 'get'
  })
}

export function deleteById(data) {
  return request({
    url: '/schedule/deleteById?id='+data,
    method: 'get'
  })
}
